package com.tensquare.zuul.controller;

import com.tensquare.dto.Result;
import com.tensquare.dto.StatusCode;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 定义错误的页面
 */
@RestController
public class ErrorController {


    /**
     * 返回统一的异常信息
     * @return
     */
    @RequestMapping("gatewayerror")
    public Result errorIndex(){
        return new Result(false, StatusCode.ERROR,"十次方社交平台网关异常，请联系管理员！");
    }
}
